<%@ page import="java.util.*,java.lang.*" pageEncoding="UTF-8"%>
<%@ page import="org.osee.administration.service.*"%>
<%@ page import="org.osee.administration.domain.*"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<%
	int tag = -1; //表明没有经过servlet处理直接进入页面

	try {
		tag = (Integer) request.getAttribute("tag");
	} catch (Exception e) {
		//e.printStackTrace();
		tag = -1;
	}
	System.out.println(tag);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<base href="<%=basePath%>" />

	<link rel="stylesheet" href="./front/css/style.css" type="text/css" />
	<meta content="text/html; charset=utf8" http-equiv="Content-Type" />
	<title>Osee 金融产品搜索</title>
	<!-- jquery library from googleapis -->
	<!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> -->
	<!-- jquery tools. remember to enable gzipping. makes it faster -->
	<!-- <script src="http://myserver.org/js-gzipped/jquery.tools.min.js"></script> -->
	<script src="./front/js/jquery.tools.min.js" type="text/javascript"></script>
	<script src="./front/js/action.js" type="text/javascript"></script>
	<link rel="shortcut icon" href="./front/img/favicon.ico" type="image/x-icon" />
</head>
<body>
	<div id="container">
		<h1 class="hd">OSee 金融情报信息搜索</h1>

		<%@ include file="inc/header.inc"%>

		<div id="pagesCtnr">
<%
	if (tag != -1) {
		if (tag == 1) {
 			String result = (String) request.getAttribute("result");
 %>
			<div id="Res" class="page">
				<h2 class="hd">搜索结果</h2>
				<ol>
					<%=result%>
				</ol>
			</div>
		<%
			} else if (tag == 0) {
		%>
			<div id="NoRes" class="page">
				<p>抱歉，找不到和您的查询 "<b>某某某某</b>" 相符的内容或信息。</p>
				<p style="margin-top: 1em;">您可以试着：</p>
				<ul>
					<li>请检查输入字词有无错误。</li>
					<li>请检查输入的逻辑关系是否正确。</li>
					<li>请换用专业化，书面化的金融表述 。</li>
					<li>请检查是否金融措辞不当或有矛盾。</li>
					<li>请减少查询字词的数量。</li>
					<li>不符合金融常识或既成事实。</li>
					<li>可能超出了我们的搜索范围，您可以阅读我们的使用说明</li>
					<li>金融市场此类信息不全或缺乏。</li>
				</ul>
			</div>
	<%
			}
	 	} else {
	 %> 
		 您的请求无法满足，请输入搜索词！
	 <%
	 	}
	 %>
		</div>

		<%@ include file="inc/footer.inc"%>
		
	</div>
	<div id="FeedbackCtnr" style="display: none;">
       		<form id="FeedbackForm">
            	<label for="name">您的称呼 :</label>
                <input name="name" />
                <label for="email">您的电子邮件地址 : </label>
                <input name="email" />
                <label for="content">您的反馈 : </label>
                <textarea name="content"></textarea>
                <input id="FeedbackCancelBtn" type="button" title="取消" value="取消" class="tbtn"/>
				<input id="FeedbackSendBtn" type="button" title="发送" value="发送" class="tbtn"/>
			 </form>
    </div>
	</body>
</html>
